package com.peiwangroup.messageservice.service;

import com.peiwangroup.messageservice.dto.OrderDTO;
import com.peiwangroup.messageservice.model.WeChatMessage;
import com.peiwangroup.messageservice.repository.MessageRepository;
import com.peiwangroup.messageservice.repository.OrderRepository;
import org.json.JSONObject;
import org.json.JSONException;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public interface MessageService {
    void saveMessage(WeChatMessage message);
    WeChatMessage parseWeChatMessage(String jsonString);
}